@extends('member.member')

<!-- title -->
@section('title', '我的文档')

<!-- 中间内容块 -->
@section('rightcontainer')
<div class="member-container fr">
    @if (count($errors) > 0)
		<div class="alert alert-danger mt-20">
			<ul>
				@foreach ($errors->all() as $error)
					<li>{{ $error }}</li>
				@endforeach
			</ul>
		</div>
	@endif
    <form action="{{url('/member/account')}}" method="post" id="password-form">
	<ul class="account-ul mt-75 clearfix">
	   @if(!empty($userinfo->email))
		<li>
		   <div class="form-group">
		      <div class="col-xs-12 col-sm-3 col-md-2 control-label ft-16 cor-2">原邮箱<span style="color: red">*</span>：</div>
              <div class="col-sm-9 col-xs-12"> 
                <input type="email" name="oldemail" class="form-control" value="{{$userinfo->email}}">
              </div>
		   </div>
		</li>
		<li>
			<div class="form-group">
		      <div class="col-xs-12 col-sm-3 col-md-2 control-label ft-16 cor-2">新邮箱<span style="color: red">*</span>：</div>
              <div class="col-sm-9 col-xs-12">
                <input type="email" name="username" class="form-control" value="">
              </div>
		   </div>
		</li>
		@else
		<li>
			<div class="form-group">
		      <div class="col-xs-12 col-sm-3 col-md-2 control-label ft-16 cor-2">邮箱<span style="color: red">*</span>：</div>
              <div class="col-sm-9 col-xs-12">
                <input type="email" name="username" class="form-control" value="">
              </div>
		   </div>
		</li>
		@endif
		<li>
			<div class="form-group">
		      <div class="col-xs-12 col-sm-3 col-md-2 control-label ft-16 cor-2">验证码<span style="color: red">*</span>：</div>
              <div class="col-sm-5 col-xs-12">
                <input type="number" name="verify_code" class="form-control" value="">
              </div>
              <div class="col-sm-4 col-xs-12">
                <button class="float-r curl-code selected" type="button"  id="to_verify" onclick="getverify('password-form',2)">
                    <span class="color-3 hide font-16" id="counter">60s</span>
                    <span id="counter_cnt">获取验证码</span>
                </button>
              </div>
		   </div>
		</li>
		<li>
		   <div class="form-group">
		      <div class="col-xs-12 col-sm-3 col-md-2 control-label ft-16 cor-2">密码<span style="color: red">*</span>：</div>
              <div class="col-sm-9 col-xs-12"> 
                <input type="password" name="password" class="form-control" value="" autocomplete="off">
              </div>
		   </div>
			
		</li>
		<li>
		  <div class="account-button clearfix">
		      {!! csrf_field() !!}
		      <input type="hidden" name="types" value="eamil">
    		  <button class="button-save fl">保存</button>
    		  <div class="button-cancel fl"><a href="#">取消</a></div>
		  </div>
	   </li>
	</ul>
	</form>
</div>
@stop

<!-- 底部块 -->
@section('footer')
    @parent
@stop

